<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>API docs for &ldquo;pymine.poster.streaminghttp.StreamingHTTPRedirectHandler&rdquo;</title>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
    <link href="apidocs.css" type="text/css" rel="stylesheet" />
    
    
  </head>
  <body>
    <h1 class="class">Class p.p.s.StreamingHTTPRedirectHandler(<span title="urllib2.HTTPRedirectHandler">urllib2.HTTPRedirectHandler</span>):</h1>
    <p>
      <span id="part">Part of <a href="pymine.html">pymine</a>.<a href="pymine.poster.html">poster</a>.<a href="pymine.poster.streaminghttp.html">streaminghttp</a></span>
      
      <a href="classIndex.html#pymine.poster.streaminghttp.StreamingHTTPRedirectHandler">View In Hierarchy</a>
    </p>
    <div>
      
    </div>
    <div>Subclass of `urllib2.HTTPRedirectHandler` that overrides the 
`redirect_request` method to properly handle redirected POST requests</p>
<p>This class is required because python 2.5's HTTPRedirectHandler does not
remove the Content-Type or Content-Length headers when requesting the new 
resource, but the body of the original request is not preserved.<table class="fieldTable"></table></div>
    
    
    <div id="splitTables">
      <table class="children sortable" id="id145">
  
  
  
  
  <tr class="method">
    
    
    <td>Method</td>
    <td><a href="pymine.poster.streaminghttp.StreamingHTTPRedirectHandler.html#redirect_request">redirect_request</a></td>
    <td><span>Return a Request or None in response to a redirect.</span></td>
  </tr>
  
</table>
      
      
    </div>
    
    
    
    <div class="function">
        <a name="pymine.poster.streaminghttp.StreamingHTTPRedirectHandler.redirect_request"></a>
        <a name="redirect_request"></a>
        <div class="functionHeader">
        
        def redirect_request(self, req, fp, code, msg, headers, newurl):
        
      </div>
        <div class="functionBody">
          
          <div>Return a Request or None in response to a redirect.</p>
<p>This is called by the http_error_30x methods when a redirection response
is received.  If a redirection should take place, return a new Request to 
allow http_error_30x to perform the redirect.  Otherwise, raise HTTPError 
if no-one else should try to handle this url.  Return None if you can't but
another Handler might.<table class="fieldTable"></table></div>
        </div>
      </div>
    
    <address>
      <a href="index.html">API Documentation</a> for pymine, generated by <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a> at 2010-04-07 23:15:24.
    </address>
  </body>
</html>